.root {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.unitField {
    position: relative;
    width: 578px;
    min-height: 116px;
    max-height: 184px;
    border: 1px solid #e1e8ed;
    border-radius: 3px;
    padding: 2px;
    font-size: 0;
    overflow-y: auto;
}

.unitFieldDisabled {
    position: relative;
    width: 578px;
    min-height: 116px;
    max-height: 184px;
    border: 1px solid #e1e8ed;
    border-radius: 3px;
    padding: 2px;
    font-size: 0;
    overflow-y: auto;
    background: $brand-disabled;
}
.placeholder {
    position: absolute;
    padding: 10px;
    font-size: 14px;
    color: #ccc;
}

.unit {
    /* @extend .f-toe; */
    position: relative;
    box-sizing: border-box;
    display: inline-block;
    $line-height: 24px;
    max-width: 558px;
    margin: 10px 0 0 10px;
    padding: 0 30px 0 10px;
    border-radius: 12px;
    font-size: 14px;
    color: #666;
    background-color: #eef2f7;
    word-break: break-all;
}

.unit:hover {
    background-color: #e6ecf4;
}

.unitFocus {
    background-color: #e6ecf4;
}

.close {
    position: absolute;
    right: 8px;
    top: 6px;
    content: "";
    width: 10px;
    height: 10px;
    line-height: 10px;
    color: #c9cfd8;
    cursor: pointer;

    &:hover {
    color: #9da5b4;
    }
}

.root input, .root textarea {
    box-sizing: border-box;
    margin: 10px 0 0 10px;
    padding: 0 10px;
    border-radius: 12px;
    color: #666;
    border-color: transparent;
    line-height: 24px;
    vertical-align: top;
    font-size: 14px;
    outline: 0;
}

.root input {
    width: 145px;
    border: 1px dashed #e1e8ed;
}

.root textarea {
    overflow-y: hidden;
    resize: none;
}

.root textarea.textareaFocus {
    border: 1px dashed #e1e8ed;
}

.root input.inputError, .root textarea.textareaError {
    border-style: solid;
    border-color: red;
}

.msg {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 14px;
}

.tipError {
    position: absolute;
    left: 100%;
    top: 0;
    padding: 0 10px;
    line-height: 26px;
    font-size: 12px;
    display: block;
    margin: 3px 10px;
    white-space: nowrap;
    background-color: #ff867f;
    color: #fff;
}

.root[placement="bottom"] .tipError {
    position: absolute;
    left: 0;
    top: 100%;
    padding: 0 10px;
    line-height: 26px;
    font-size: 12px;
    display: block;
    margin: 0;
    white-space: nowrap;
    background-color: #ff867f;
    color: #fff;
}

.root[placement="bottom"] .tipError:after {
    display: none;
}

.tipError:after {
    content: '';
    position: absolute;
    right: 100%;
    top: 8px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-right: 4px solid #ff867f;
    border-bottom: 4px solid transparent;
}
